package com.rongke.model;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rongke.utils.DateJsonDeserializer;
import com.rongke.utils.DateJsonSerializer;
import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * @PanicBuyingGoods
 * @商品抢购(panic_buying_goods)
 * @version : Ver 1.0
 */
@TableName("panic_buying_goods")
public class PanicBuyingGoods implements Serializable {
	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**
	 * @备注:抢购商品表id
	 * @字段:id BIGINT(19)
	 */
	@TableId(type = IdType.AUTO)
	private Long id;


	/**
	 * @备注:商品id
	 * @字段:goods_id BIGINT(19)
	 */
	private Long goodsId;
	/**
	 * 备注:商品id
	 */
	@TableField(exist = false)
	private Goods goods;


	/**
	 * @备注:限时返现率
	 * @字段:time_return_rate DECIMAL(10)
	 */
	private java.math.BigDecimal timeReturnRate;


	/**
	 * @备注:限制数量
	 * @字段:num INT(10)
	 */
	private Integer num;


	/**
	 * @备注:关注数量
	 * @字段:attention_num INT(10)
	 */
	private Integer attentionNum;


	/**
	 * @备注:1正常2已抢完
	 * @字段:status INT(10)
	 */
	private Integer status;


	/**
	 * @备注:抢购日期
	 * @字段:pbt_id BIGINT(19)
	 */
	private Long pbtId;
	/**
	 * 备注:抢购日期
	 */
	@TableField(exist = false)
	private PanicBuyingTime pbt;

	/**
	 * 是否在主页显示
	 */
	private Integer isHomepage;


	public PanicBuyingGoods(){
	}

	public PanicBuyingGoods(
		Long id
	){
		this.id = id;
	}



	public void setId(Long id) {
		this.id = id;
	}

	public Long getId() {
		return this.id;
	}

	public void setGoodsId(Long goodsId) {
			this.goodsId = goodsId;
			}

	public Long getGoodsId() {
			return this.goodsId;
	}
	public void setGoods(Goods goods) {
		this.goods = goods;
	}

	public Goods getGoods() {
		return this.goods;
	}

	public Integer getIsHomepage() {
		return isHomepage;
	}

	public void setIsHomepage(Integer isHomepage) {
		this.isHomepage = isHomepage;
	}

	public void setTimeReturnRate(java.math.BigDecimal timeReturnRate) {
		this.timeReturnRate = timeReturnRate;
	}

	public java.math.BigDecimal getTimeReturnRate() {
		return this.timeReturnRate;
	}


	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getNum() {
		return this.num;
	}


	public void setAttentionNum(Integer attentionNum) {
		this.attentionNum = attentionNum;
	}

	public Integer getAttentionNum() {
		return this.attentionNum;
	}


	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setPbtId(Long pbtId) {
			this.pbtId = pbtId;
			}

	public Long getPbtId() {
			return this.pbtId;
	}
	public void setPbt(PanicBuyingTime pbt) {
		this.pbt = pbt;
	}

	public PanicBuyingTime getPbt() {
		return this.pbt;
	}
}
